package com.lkxx.entity.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.lkxx.entity.MalfunctionTemplate;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: lkxx [mazhenjun.lk.xx@gmail.com]
 * @CreateTime: 2023-10-31  17:29
 * @Description: 故障模板监听类
 * @Version: 1.0
 */
public class MalfunctionTemplateListener implements ReadListener<MalfunctionTemplate> {
    List<MalfunctionTemplate> malfunctionTemplateList = new ArrayList<>();
    @Override
    public void invoke(MalfunctionTemplate malfunctionTemplate, AnalysisContext analysisContext) {
        malfunctionTemplateList.add(malfunctionTemplate);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
